package org.dragonnova.iot.business.cloud.mq.message;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class TagMessage implements Serializable {

	/**
	 * @description:
	 * @author songxy DateTime 2017年4月28日
	 * 
	 */

	private static final Long serialVersionUID = 5231299754091232661L;

	private String id;

	private Long phone;
	/**
	 * 温度
	 */
	private Float temperature;
	/**
	 * 湿度
	 */
	private Float wetness;
	/**
	 * 电量
	 */
	private Float battery;
	/**
	 * 包大小
	 */
	private Integer packageCount;

	private Date createTime;

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public Float getTemperature() {
		return temperature;
	}

	public void setTemperature(Float temperature) {
		this.temperature = temperature;
	}

	public Float getWetness() {
		return wetness;
	}

	public void setWetness(Float wetness) {
		this.wetness = wetness;
	}

	/**
	 * @return get battery
	 */

	public Float getBattery() {
		return battery;
	}

	/**
	 * @param battery
	 *            set battery
	 */

	public void setBattery(Float battery) {
		this.battery = battery;
	}

	/**
	 * @return get count
	 */

	public Integer getPackageCount() {
		return packageCount;
	}

	/**
	 * @param count
	 *            set count
	 */

	public void setPackageCount(Integer packageCount) {
		this.packageCount = packageCount;
	}

	/**
	 * @description:
	 * @author songxy DateTime 2017年5月2日 上午11:54:41
	 * @return
	 */
	@Override
	public String toString() {
		return "TagMessage [phone=" + phone + ", temperature=" + temperature
				+ ", wetness=" + wetness + "]";
	}

	/**
	 * @return get createTime
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            set createTime
	 */

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return get id
	 */

	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            set id
	 */

	public void setId(String id) {
		this.id = id;
	}

}
